/*
 * @Author: jianfanfan 1217572833@qq.com
 * @Date: 2025-04-01 10:00:00
 * @LastEditors: jianfanfan 1217572833@qq.com
 * @LastEditTime: 2025-04-01 19:19:23
 * @FilePath: \guozaoke\src\config\redis.config.ts
 * @Description: Redis配置文件
 */

export default () => ({
  redis: {
    host: process.env.REDIS_HOST || 'localhost',
    port: parseInt(process.env.REDIS_PORT || '6379', 10),
    ttl: parseInt(process.env.REDIS_TTL || '3600', 10), // 默认缓存过期时间：1小时
  },
});
